package com.sac.approval.service;

import com.sac.approval.domain.ApprovalLineTemplateDO;
import com.sac.approval.domain.ApprovalTemplateDO;
import com.sac.approval.domain.AttachmentDO;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2018-09-18 14:37:46
 */
public interface ApprovalTemplateService {
	
	ApprovalTemplateDO get(String appTemplateId);
	
	List<ApprovalTemplateDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(ApprovalTemplateDO approvalTemplate);
	
	int update(ApprovalTemplateDO approvalTemplate);

	int batchUpdate(List<ApprovalTemplateDO> approvalTemplateList);
	
	int remove(String appTemplateId);
	
	int batchRemove(String[] appTemplateIds);

	int saveApprovalTemplate(ApprovalTemplateDO approval, List<ApprovalLineTemplateDO> appLines, List<AttachmentDO> attachments);

	int updateApprovalTemplate(ApprovalTemplateDO approval, List<ApprovalLineTemplateDO> appLines, List<AttachmentDO> attachments);

}
